﻿using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_menu", PrimaryKey = "ID")]
    public class Menu : BaseEntity
    {
        public Menu()
        { }
        #region Model
        private int _id;
        /// <summary>
        ///
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private int _menuid;
        /// <summary>
        ///
        /// </summary>
        public int MenuID
        {
            get { return _menuid; }
            set { this.ChangeNotify<int>("MenuID", value, ref _menuid); }
        }
        private string _menuname;
        /// <summary>
        ///
        /// </summary>
        public string MenuName
        {
            get { return _menuname; }
            set { this.ChangeNotify<string>("MenuName", value, ref _menuname); }
        }
        private string _menudesc;
        /// <summary>
        ///样式描述
        /// </summary>
        public string MenuDesc
        {
            get { return _menudesc; }
            set { this.ChangeNotify<string>("MenuDesc", value, ref _menudesc); }
        }
        private int _fathermenuid;
        /// <summary>
        ///
        /// </summary>
        public int FatherMenuid
        {
            get { return _fathermenuid; }
            set { this.ChangeNotify<int>("FatherMenuid", value, ref _fathermenuid); }
        }
        private int _isenabled;
        /// <summary>
        ///
        /// </summary>
        public int isEnabled
        {
            get { return _isenabled; }
            set { this.ChangeNotify<int>("isEnabled", value, ref _isenabled); }
        }
        #endregion

    }
}
 